using System;
using System.Data;
using System.Linq;
using System.ComponentModel;
using System.Reflection;
using System.Collections.Generic;
using DataObject.Database;
using DataObject.Model;

	public partial class CabinStatusMapper
	{
		#region ToEntity

		public static CabinStatusEntity ToEntity(CabinStatusEntity entity, CabinStatusDTO businessobject)
		{
			if (businessobject == null)
			{
				return null;
			}
            //entity.BlockDates = businessobject.BlockDates;
			entity.CabinID = businessobject.CabinID;
            //entity.Date = businessobject.Date;
            //entity.RDID = businessobject.RDID;
			entity.Status = businessobject.Status;
			return entity;
		}

		#endregion

		#region ToBusinessObject

		public static CabinStatusDTO ToBusinessObject(CabinStatusEntity entity)
		{
			if (entity == null)
			{
				return null;
			}
			return new CabinStatusDTO
			{
                //BlockDates = entity.BlockDates,
				CabinID = entity.CabinID,
                //Date = entity.Date,
                //RDID = entity.RDID,
				Status = entity.Status,
                //ReservationDetail = ReservationDetailMapper.ToBusinessObject(entity.ReservationDetail),
			};
		}

		#endregion

		#region ToBusinessObjectHasChildren

		public static CabinStatusDTO ToBusinessObjectHasChildren(CabinStatusEntity entity, params Type[] types)
		{
			if (entity == null)
			{
				return null;
			}
			CabinStatusDTO businessobject = new CabinStatusDTO
			{
                //BlockDates = entity.BlockDates,
				CabinID = entity.CabinID,
                //Date = entity.Date,
                //RDID = entity.RDID,
				Status = entity.Status,
                //ReservationDetail = ReservationDetailMapper.ToBusinessObject(entity.ReservationDetail),
			};
			return businessobject;
		}

		#endregion

	}
